import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../style/app_colors.dart';

class CommRowWidget {


  static Widget buildRowBetweenTextIconItemWidget(
      String leftText, String iconName,
      {GestureTapCallback? onTap}) {
    return GestureDetector(
      onTap: onTap,
      child: Container(
        margin: EdgeInsets.all(40.h),
        decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(16)), color: Colors.white),
        child: Column(
          children: [
            Container(
              padding: EdgeInsets.only(top: 22.h, bottom: 22.h),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [
                  Text(leftText, style: TextStyle(fontSize: 32.sp, color: AppColors.btn_character_unbind_color)),
                  Image.asset(iconName, width: 30.w, height: 30.h),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
